package com.kang.pojo;

import java.io.Serializable;
import java.util.Date;

/**
 * 物品批次实体类
 * 
 * @author zs614
 *
 */
public class ItemDetail extends Item implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * ID主键
	 */
	private Integer id;
	/**
	 * 物品id
	 */
	private Integer itemInformationID;
	/**
	 * 批次号
	 */
	private String batchNumber;
	/**
	 * 有效期
	 */
	private Date expiryDate;
	/**
	 * 数量
	 */
	private Integer number;
	/**
	 * 仓库ID
	 */
	private Integer warehouseManagementID;
	/**
	 * 状态，0=正常
	 */
	private Integer status;
	/**
	 * 入库类型 0普通入库 1采购入库
	 */
	private Integer source_type;
	/**
	 * 来源id(来源于普通入库-物品id或者采购入库-物品id)
	 */
	private Integer source_id;
	/**
	 * 单位
	 */
	private String purchasingUnit;
	/**
	 * 仓库名称
	 */
	private String warehouseName;

	public ItemDetail() {
		super();
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getItemInformationID() {
		return itemInformationID;
	}

	public void setItemInformationID(Integer itemInformationID) {
		this.itemInformationID = itemInformationID;
	}

	public Date getExpiryDate() {
		return expiryDate;
	}

	public void setExpiryDate(Date expiryDate) {
		this.expiryDate = expiryDate;
	}

	public Integer getNumber() {
		return number;
	}

	public void setNumber(Integer number) {
		this.number = number;
	}

	public Integer getWarehouseManagementID() {
		return warehouseManagementID;
	}

	public void setWarehouseManagementID(Integer warehouseManagementID) {
		this.warehouseManagementID = warehouseManagementID;
	}

	public Integer getStatus() {
		return status;
	}

	public void setStatus(Integer status) {
		this.status = status;
	}

	public Integer getSource_type() {
		return source_type;
	}

	public void setSource_type(Integer source_type) {
		this.source_type = source_type;
	}

	public Integer getSource_id() {
		return source_id;
	}

	public void setSource_id(Integer source_id) {
		this.source_id = source_id;
	}

	public String getBatchNumber() {
		return batchNumber;
	}

	public void setBatchNumber(String batchNumber) {
		this.batchNumber = batchNumber;
	}

	public String getPurchasingUnit() {
		return purchasingUnit;
	}

	public void setPurchasingUnit(String purchasingUnit) {
		this.purchasingUnit = purchasingUnit;
	}

	public String getWarehouseName() {
		return warehouseName;
	}

	public void setWarehouseName(String warehouseName) {
		this.warehouseName = warehouseName;
	}

	@Override
	public String toString() {
		return "ItemDetail [id=" + id + ", itemInformationID=" + itemInformationID + ", batchNumber=" + batchNumber
				+ ", expiryDate=" + expiryDate + ", number=" + number + ", warehouseManagementID="
				+ warehouseManagementID + ", status=" + status + ", source_type=" + source_type + ", source_id="
				+ source_id + ", purchasingUnit=" + purchasingUnit + ", warehouseName=" + warehouseName + "]";
	}

	public ItemDetail(Integer id, Integer itemInformationID, String batchNumber, Date expiryDate, Integer number,
			Integer warehouseManagementID, Integer status, Integer source_type, Integer source_id,
			String purchasingUnit, String warehouseName) {
		super();
		this.id = id;
		this.itemInformationID = itemInformationID;
		this.batchNumber = batchNumber;
		this.expiryDate = expiryDate;
		this.number = number;
		this.warehouseManagementID = warehouseManagementID;
		this.status = status;
		this.source_type = source_type;
		this.source_id = source_id;
		this.purchasingUnit = purchasingUnit;
		this.warehouseName = warehouseName;
	}

}